﻿@{
    Layout = null;
}

@model UcAsp.Net.Model.UserInfo

<div>
    <input name="ID" type="hidden" name="ID" value="@Model.ID" />
    <p>
        <label>
            姓名</label>
        <input class="text-input large-input" type="text" name="UserName" value="@Model.UserName"  />
    </p>
    <p>
        <label>
            积分</label>
        <input class="text-input large-input" type="text" name="Point" value="@Model.Point" />
    </p>
    <p>
        <label>
            等级</label>
        <select id="UserLevel">
            <option value="0" @if((int)Model.UserLevel==0){<text>selected</text>}>初级会员</option>
            <option value="10" @if((int)Model.UserLevel==10){<text>selected</text>}>高级会员</option>
            <option value="20" @if((int)Model.UserLevel == 20){<text>selected</text>}>银牌会员</option>
            <option value="30" @if((int)Model.UserLevel==30){<text>selected</text>}>金牌会员</option>
            <option value="40" @if((int)Model.UserLevel==40){<text>selected</text>}>代理会员</option>
            <option value="50" @if((int)Model.UserLevel==50){<text>selected</text>}>超级会员</option>
            <option value="100" @if((int)Model.UserLevel==100){<text>selected</text>}>化妆师</option>
            <option value="100" @if((int)Model.UserLevel==110){<text>selected</text>}>付费化妆师</option>
            <option value="200" @if((int)Model.UserLevel==200){<text>selected</text>}>商家</option>
            <option value="210" @if((int)Model.UserLevel==210){<text>selected</text>}>付费商家</option>
        </select>
    </p>
    <p>
        <span class="btn save" >保存</span>
    </p>
 </div>
 <script>
     $(document).ready(function () {
         $(".save").click(function () {
             $.post("/Admin/CustomSave", { ID: $("input[name='ID']").val(), UserName: $("input[name='UserName']").val(), Point: $("input[name='Point']").val(), UserLevel: $("#UserLevel").val() }, function (dataResult) {
                 location.reload();
             });
         })
     })
 </script>

